<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%!
	private int power(int base,int exponent){
		int result = 1;
		for(int i=0;i<exponent;i++) result *= base;
		return result;
	}  
%>

2^1=<%= power(2,1) %><br>
2^2=<%= power(2,2) %><br>
2^3=<%= power(2,3) %><br>
2^4=<%= power(2,4) %><br>
2^5=<%= power(2,5) %><br>